package com.cx.base.day26_序列化;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
public class Pepole implements Serializable {

    public static final long serialVersionUID = 1L;

    String name;

    String age;

    Person person;

    public Pepole(String name,String age){
        this.name = name;
        this.age = age;
        this.person = new Person("localhost","other");
    }

    @Override
    public String toString() {
        return "Pepole{" +
                "name='" + name + '\'' +
                ", age='" + age + '\'' +
                ", person=" + person +
                '}';
    }
}
